package com.gy.smartmanagement.process.processdevice.adapter;

import android.content.Context;

import com.gy.smartmanagement.R;
import com.gy.smartmanagement.base.adapter.BaseRecyclerAdapter;
import com.gy.smartmanagement.process.processdevice.mvp.MaintenBean;
import java.util.List;
import androidx.annotation.NonNull;
import tl.com.easy_recycleview_library.BaseRecyclerViewHolder;

public class MaintenAdapter extends BaseRecyclerAdapter<MaintenBean> {

  public MaintenAdapter(Context context, @NonNull List<MaintenBean> listData, int layoutID) {
    super(context, listData, layoutID);
  }

  @Override
  protected void bindDataToView(BaseRecyclerViewHolder holder, MaintenBean item, int position) {
    holder.setText(R.id.maintence_number_tv,item.getNumber());
    holder.setText(R.id.maintence_name_tv,item.getName());
    holder.setText(R.id.maintence_address_tv,item.getPosition());
    holder.setText(R.id.maintence_person_tv,item.getPerson());
    holder.setText(R.id.maintence_time_tv,item.getTime());
  }
}
